package net.zigin.nhi.could.waste.data;

import net.zigin.nhi.could.waste.dto.SysUserDto;
import net.zigin.nhi.could.waste.vo.SysUserVo;
import org.testng.annotations.DataProvider;

import java.util.Arrays;

/**
 * service层测试数据
 *
 * @author mgw1986
 * @version V1.0
 * @date 2018/12/4 11:53
 */
public class SysUserServiceDataProvider {

    private String id = "22F313AA83244537B1B45EC5A61FEE08";

    @DataProvider(name = "getSysUserInfoById")
    public Object[][] getSysUserInfoById() {
        return new Object[][]{
                {id}
        };
    }

    @DataProvider(name = "modifyPassword")
    public Object[][] modifyPassword() {
        return new Object[][]{
                {SysUserDto.builder().name("zhangsan").password("123456").build()}
        };
    }

    @DataProvider(name = "modifyPasswordWithSmsCode")
    public Object[][] modifyPasswordWithSmsCode() {
        return new Object[][]{
                {SysUserDto.builder()
                        .mobile("15776504651")
                        .password("123456")
                        .randomValidateCode("2324")
                        .smsCode("9527").build()}
        };
    }

    @DataProvider(name = "updateGuideCode")
    public Object[][] updateGuideCode() {
        return new Object[][]{
                {Arrays.asList("1","0","0","0","0")}
        };
    }






}
